<fieldset id="{{$id}}" class="d-none">
    @if($goods_types)
        @component('backend::component.form.form-group')
            @slot('title') 类型 @endslot
            @component('backend::component.form.select',['options'=>$goods_types])
                @slot('name') goods_type @endslot
                @slot('attr') id=goods_type @endslot
                @slot('params') {"attrUrl":"{{route('b_GoodsAttribute_getAttributeByTypeId')}}","specUrl":"{{route('b_ShopSpec_getSpecByTypeId')}}"} @endslot
            @endcomponent
        @endcomponent
{{--            <table class="table table-bordered info-card " id="shop-attr">--}}
{{--                <thead>--}}
{{--                <tr class="table-secondary"><td style="width: 200px;">属性名称</td>--}}
{{--                    <td>属性值--}}
{{--                        <a onclick="addAttribute();" href="javascript:;" class="add-attr float-right text-primary">添加属性</a>--}}
{{--                    </td>--}}
{{--                </tr></thead>--}}
{{--                <tbody>--}}
{{--                </tbody>--}}
{{--            </table>--}}

            <div class="card mb-3" >
                <div class="card-header">商品规格<a onclick="addSpec();" href="javascript:;" class="add-attr float-right text-primary">添加规格</a></div>
                <div class="card-body  bg-secondary" id="shop-spec">
                </div>
            </div>
           <div id="shop-spec-body"></div>
    @endif
        @component('backend::component.form.form-group')
            @slot('title') 库存 @endslot
            @component('backend::component.form.input')
                @slot('name') stock @endslot

            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 库存预警值 @endslot
            @component('backend::component.form.input')
                @slot('name') stock_warning @endslot

            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 计量单位 @endslot
            @component('backend::component.form.select',['options'=>config('shop.unit_type')])
                @slot('name') unit_type @endslot
            @endcomponent
        @endcomponent
        @component('backend::component.form.form-group')
            @slot('title') 邮寄方式 @endslot
            @component('backend::component.form.select',['options'=>config('shop.post_type')])
                @slot('name') post_type @endslot

            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 邮费 @endslot
            @component('backend::component.form.input')
                @slot('name') postage @endslot
                    @slot('value') 0 @endslot
            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 显示销售量 @endslot
            @component('backend::component.form.input')
                @slot('name') show_sales_volume @endslot
                @slot('value') 1000 @endslot
            @endcomponent
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 排序 @endslot
            @component('backend::component.form.input')
                @slot('name') sort @endslot
                @slot('value') 1000 @endslot
            @endcomponent
        @endcomponent


        @component('backend::component.form.form-group')
            @slot('title') 是否热销 @endslot
            <div>
                @foreach(['0'=>'否','1'=>'是'] as $value=>$title)
                    @component('backend::component.radio')
                        @slot('title') {{$title}} @endslot
                        @slot('name') is_hot @endslot
                        @slot('value') {{$value}} @endslot
                        @if($value == 0)
                            @slot('checked') checked @endslot
                        @endif
                    @endcomponent
                @endforeach
            </div>
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 是否推荐 @endslot
            <div>
                @foreach(['0'=>'否','1'=>'是'] as $value=>$title)
                    @component('backend::component.radio')
                        @slot('title') {{$title}} @endslot
                        @slot('name') is_recommend @endslot
                        @slot('value') {{$value}} @endslot
                        @if($value == 0)
                            @slot('checked') checked @endslot
                        @endif
                    @endcomponent
                @endforeach
            </div>
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 新品 @endslot
            <div>
                @foreach(['0'=>'否','1'=>'是'] as $value=>$title)
                    @component('backend::component.radio')
                        @slot('title') {{$title}} @endslot
                        @slot('name') is_new @endslot
                        @slot('value') {{$value}} @endslot
                        @if($value == 0)
                            @slot('checked') checked @endslot
                        @endif
                    @endcomponent
                @endforeach
            </div>
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 首页展示 @endslot
            <div>
                @foreach(['0'=>'否','1'=>'是'] as $value=>$title)
                    @component('backend::component.radio')
                        @slot('title') {{$title}} @endslot
                        @slot('name') is_home_show @endslot
                        @slot('value') {{$value}} @endslot
                        @if($value == 0)
                            @slot('checked') checked @endslot
                        @endif
                    @endcomponent
                @endforeach
            </div>
        @endcomponent

        @component('backend::component.form.form-group')
            @slot('title') 是否上架 @endslot
            <div>
                @foreach(['0'=>'否','1'=>'是'] as $value=>$title)
                    @component('backend::component.radio')
                        @slot('title') {{$title}} @endslot
                        @slot('name') status @endslot
                        @slot('value') {{$value}} @endslot
                        @if($value == 0)
                            @slot('checked') checked @endslot
                        @endif
                    @endcomponent
                @endforeach
            </div>
        @endcomponent

</fieldset>